
package com.bstek.urule.runtime.event.impl;

import com.bstek.urule.model.flow.FlowNode;
import com.bstek.urule.model.flow.ins.ProcessInstance;
import com.bstek.urule.runtime.KnowledgeSession;
import com.bstek.urule.runtime.event.ProcessBeforeNodeTriggeredEvent;

/**
 * @author Jacky.gao
 * @since 2015年7月21日
 */
public class ProcessBeforeNodeTriggeredEventImpl extends DefaultProcessEvent implements ProcessBeforeNodeTriggeredEvent {
    private FlowNode flowNode;

    public ProcessBeforeNodeTriggeredEventImpl(FlowNode flowNode, ProcessInstance processInstance, KnowledgeSession knowledgeSession) {
        super(processInstance, knowledgeSession);
        this.flowNode = flowNode;
    }

    @Override
    public FlowNode getFlowNode() {
        return flowNode;
    }
}
